home *** CD-ROM | disk | FTP | other *** search
- KEYBOARD.SYS
- Translation table for foreign keyboard codes
- See also <KEYB> <COUNTRY> <NLSFUNC> <CHCP> <MODE>
-
- The KEYBOARD.SYS file contains tables which direct the KEYB.COM command to
- convert scan codes to ascii characters. To change a keyboard, the new
- keyboard must support at least one of the currently prepared code pages for
- the CON device. You can change the keyboard without restarting the
- computer. (For example, the <KEYB> command can be used multiple times.)
-
- The <MODE> command is used to prepare the new code pages required by the
- new keyboard layout; only certain keyboards or code page combinations
- are allowed. If a mismatch is created between keyboard and display,
- character keys may not be correctly translated into the correct code
- page, and incorrect characters may be displayed.
-
- The following table shows the valid combinations of code pages and
- keyboards:
-
- ----------------------------------
- | CODE | KEYBOARD |
- | PAGE | |
- |-------|--------------------------|
- | | US, UK, Fr, GR, IT, SP, |
- | 437 | LA, SV, SU, NL |
- |-------|--------------------------|
- | | UK, Fr, GR, IT, SP, DK, |
- | 850 | NL, SU, NO, PO, SV, SF, |
- | | SG, CF, BE, LA, US |
- |-------|--------------------------|
- | 860 | PO |
- |-------|--------------------------|
- | 863 | CF |
- |-------|--------------------------|
- | 865 | NO, DK |
- ----------------------------------
-
- The <KEYB> command creates translation tables for each code page that
- has been prepared at the time <KEYB> is used. It will activate the code
- page that has been requested. If a code page is desired that is not
- in that list of prepared code pages, it must be first prepared and
- then <KEYB> should be issued again. Refer to the <MODE> command for more
- information.
-
- If a code page has been selected previous to the <KEYB> command, and no
- code page is specified in <KEYB>, it will attempt to activate the
- selected code page.
-
- The <KEYB> command sets the following errorlevel code:
-
- 0 - Successful execution and termination.
- 1 - Invalid language, code page, or syntax.
- 2 - Bad or missing keyboard definition file.
- 3 - <KEYB> could not create a keyboard table in resident memory.
- 4 - An error condition occurred when communicating with the CON
- device.
- 5 - Code page request has not been prepared.
- 6 - The translation table for selected code page cannot be found in
- the resident keyboard table.
-